import request from '@/utils/request'

// 查询活动报名列表
export function listActivitySignup(query) {
  return request({
    url: '/act/activitySignup/list',
    method: 'get',
    params: query
  })
}

// 查询活动报名详细
export function getActivitySignup(id) {
  return request({
    url: '/act/activitySignup/' + id,
    method: 'get'
  })
}

// 新增活动报名
export function addActivitySignup(data) {
  return request({
    url: '/act/activitySignup',
    method: 'post',
    data: data
  })
}

// 修改活动报名
export function updateActivitySignup(data) {
  return request({
    url: '/act/activitySignup',
    method: 'put',
    data: data
  })
}

// 删除活动报名
export function delActivitySignup(id) {
  return request({
    url: '/act/activitySignup/' + id,
    method: 'delete'
  })
}

// 活动报名签到
export function signinActivitySignup(id) {
  return request({
    url: '/act/activitySignup/signin/' + id,
    method: 'put'
  })
}

// 导出活动报名
export function exportActivitySignup(query) {
  return request({
    url: '/act/activitySignup/export',
    method: 'get',
    params: query
  })
}